package xl.net
{
	import flash.net.Responder;
	
	import xl.utils.UtilsGUID;

	public class HttpModel
	{
		public var id:uint;
		public var controller:String;
		public var action:String;
		public var param:Object;
		public var url:String;			//yii以外自定义的URL

		private var _okCall:Function;
		private var _faultCall:Function;
		
		public function HttpModel($controller:String,$action:String,$okCall:Function,$param:Object=null,$faultCall:Function=null):void
		{
			id=UtilsGUID.getGUID();
			controller = $controller;
			action = $action;
			param = $param;
			_okCall = $okCall;
			_faultCall = $faultCall;
		}
		
		
		public function get faultCall():Function
		{
			return _faultCall;
		}
		
		public function get okCall():Function
		{
			return _okCall;
		}

	}
}